package actions.standard.form;

import gui.standard.form.PrometniDokumentForm;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.ImageIcon;

public class StornirajPrometniDokumentAction extends AbstractAction {

	private static final long serialVersionUID = 1L;
	private PrometniDokumentForm promForm;
	
	public StornirajPrometniDokumentAction(PrometniDokumentForm promForm) {
		putValue(SMALL_ICON, new ImageIcon("img/unbook2.gif"));
		putValue(SHORT_DESCRIPTION, "Storniraj prometni dokument");
		this.promForm = promForm;
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		// TODO Auto-generated method stub
		promForm.stornirajPrometniDokument();
	}

}